package com.ruoyi.exam.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 答案对象 p_answer
 *
 * @author ruoyi
 * @date 2022-01-03
 */
public class PAnswer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 答案表的主键 */
    private Long id;

    /** 当前题目所有答案的信息 */
    private String allOption;

    /** 答案的图片路径 */
    private String images;

    /** 答案解析 */
    private String analysis;

    /** 对应题目的id */
    private Long questionId;

    /** 正确的选项对应的下标 */
    private String trueOption;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setAllOption(String allOption)
    {
        this.allOption = allOption;
    }

    public String getAllOption()
    {
        return allOption;
    }
    public void setImages(String images)
    {
        this.images = images;
    }

    public String getImages()
    {
        return images;
    }
    public void setAnalysis(String analysis)
    {
        this.analysis = analysis;
    }

    public String getAnalysis()
    {
        return analysis;
    }
    public void setQuestionId(Long questionId)
    {
        this.questionId = questionId;
    }

    public Long getQuestionId()
    {
        return questionId;
    }
    public void setTrueOption(String trueOption)
    {
        this.trueOption = trueOption;
    }

    public String getTrueOption()
    {
        return trueOption;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("allOption", getAllOption())
            .append("images", getImages())
            .append("analysis", getAnalysis())
            .append("questionId", getQuestionId())
            .append("trueOption", getTrueOption())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
